<template>
  <div class="nav-bar">
    <div class="nav-left"><slot name="left"></slot></div>
    <div class="nav-center"><slot name="center"></slot></div>
    <div class="nav-right"><slot name="right"></slot></div>
  </div>
</template>

<script>
export default {};
</script>

<style>
.nav-bar {
  display: flex;
  /* background-color: #ff8e96; */
  width: 100%;
  height: 44px;
  /* position: fixed; */
  /* position: sticky; */
  /* box-shadow: ; */
}
.nav-left,
.nav-right{
  width: 60px;
  height: 100%;
  /* background-color: red; */
}
.nav-right{
  right: 0;
}
.nav-center{
  flex: 1;
  line-height: 44px;
  text-align: center;
}
</style>